package com.zx.mall.service;

import com.zx.mall.exception.ZxMallException;
import com.zx.mall.model.pojo.User;

/**
 * 描述：     UserService
 */
public interface UserService {

    User getUser();

    void register(String userName, String password, String emailAddress) throws ZxMallException;

    User login(String userName, String password) throws ZxMallException;

    void updateInformation(User user) throws ZxMallException;

    boolean checkAdminRole(User user);

    boolean checkEmailRegistered(String emailAddress);
}
